describe('practice-6-8', function () {

    it("找出这个三个人哪个是诚实族哪个是说谎族哪个是两面族？", function () {
        var result = get_come_from_which_diff_family();
        var left = result.left;
        var middle = result.middle;
        var right = result.right;

        var L=0, M=0, R=0,LL=0,MM=0,RR=0;
        if(left == 'truth') L = 1;
        else if(left == 'both_side') LL = 1;
        else if(left == 'lie') L = 0;

        if(middle == 'truth') M = 1;
        else if(middle == 'both_side') MM = 1;
        else if(middle == 'lie') M = 0;

        if(right == 'truth') R = 1;
        else if(right == 'both_side') RR = 1;
        else if(right == 'lie') R = 0;

        expect((L&&!LL&&M&&!MM||!L&&!M)&&!M&&(R&&!M&&!MM||(RR&&!R)||(!R&&!RR&&(M||MM)))&&L+LL!=2&&M+MM!=2&&R+RR!=2&&L+M+R===1&&LL+MM+RR===1).toBe(true);


    });
});
